package com.atmilan.quartz.model.dto.lavita;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Vietti商品sku源映射
 * @Description: 
 * @author Daigb
 * @date 2021-07-02
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class LavitaProductSkuResDTO {
    @JsonProperty(value = "data")
    private Detail dataDetail;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Detail {

        @JsonProperty(value = "size")
        private String size;
        @JsonProperty(value = "color")
        private String color;

        @JsonProperty(value = "sizeId")
        private String sizeId;

        @JsonProperty(value = "colorId")
        private String colorId;

        @JsonProperty(value = "productId")
        private String productId;
        @JsonProperty(value = "kuanId")
        private String kuanId;

        @JsonProperty(value = "stock")
        private Integer stock;

        @JsonProperty(value = "skuCode")
        private String skuCode;
        @JsonProperty(value = "lockQty")
        private Integer lockQty;
        @JsonProperty(value = "qtyAvail")
        private Integer qtyAvail;
        @JsonProperty(value = "IsHide")
        private Integer IsHide;

        //库存
        @JsonProperty(value = "storeId")
        private String storeId;
        @JsonProperty(value = "StoreName")
        private String StoreName;
        @JsonProperty(value = "productUnit")
        private String productUnit;
        @JsonProperty(value = "category")
        private String category;
        @JsonProperty(value = "skuPrice")
        private BigDecimal skuPrice;
        @JsonProperty(value = "qtyMax")
        private String qtyMax;
        @JsonProperty(value = "qtyMin")
        private String qtyMin;
        @JsonProperty(value = "qtyCur")
        private String qtyCur;
        @JsonProperty(value = "qtyIn")
        private String qtyIn;
        @JsonProperty(value = "qtyIntr")
        private String qtyIntr;


        @Data
        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class Size {
            @JsonProperty(value = "size")
            private String size;

            @JsonProperty(value = "sizeId")
            private Integer sizeId;
        }
        @Data
        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class Color {
            @JsonProperty(value = "color")
            private String color;

            @JsonProperty(value = "colorId")
            private Integer colorId;
            @JsonProperty(value = "colorImg")
            private String colorImg;
        }
    }
}
